#pragma once
#include "_Marker.h"
#include "_GraphLayout.h"

class _YMarker : public _Marker
{

    public:
        _YMarker(_GraphLayout& Layout, double Value, COLORREF Color, CString& Caption):
            _Marker(Layout)
        {
            m_Layout = Layout;
            m_Value = Value;
            m_Color = Color;
            m_Caption = Caption;
            m_Visible = true;
        }

        _YMarker(_YMarker& Marker)
            : _Marker(Marker.m_Layout, Marker.m_Handle)
        {
            m_Value = Marker.m_Value;
            m_Color = Marker.m_Color;
            m_Caption = Marker.m_Caption;
            m_Visible = Marker.m_Visible;
        };



        void draw(double Min, double Max, _u32 BorderSize, _u32 YAxisWidth, _u32 XAxisHeight, _u32 TitleHeight);
};

